<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithEvents;
use Maatwebsite\Excel\Events\AfterSheet;
use PhpOffice\PhpSpreadsheet\Cell\DataValidation;

class CustomExport implements WithHeadings,  WithEvents
{
    protected $param;

    public function __construct($param)
    {
        $this->param = $param;
    }

    public function headings(): array
    {

        return [ '称呼(必填)', '手机号(必填)', '性别(必填)', '姓名', '生日', '所在地区（省）', '所在地区（市）','所在地区（区）', '婚况(必填)', '身高CM', '学历', '职业', '年收入'];
    }

    public function registerEvents() : array
    {
        return [];
    }
}
